home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Object = "{6B7E6392-850A-101B-AFC0-4210102A8DA7}#1.2#0"; "COMCTL32.OCX"
- Object = "{EAB22AC0-30C1-11CF-A7EB-0000C05BAE0B}#1.1#0"; "SHDOCVW.DLL"
- Begin VB.Form frmMain
- BackColor = &H00000000&
- BorderStyle = 1 'Fixed Single
- ClientHeight = 4965
- ClientLeft = 3045
- ClientTop = 3330
- ClientWidth = 15270
- Icon = "frmMain.frx":0000
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 4965
- ScaleWidth = 15270
- Begin VB.TextBox txtAddress
- BackColor = &H00000000&
- BorderStyle = 0 'None
- BeginProperty Font
- Name = "Tahoma"
- Size = 12
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H00FFFFFF&
- Height = 285
- Left = 360
- TabIndex = 1
- Top = 0
- Width = 5055
- End
- Begin VB.Timer timTimer
- Interval = 1000
- Left = 5400
- Top = 720
- End
- Begin SHDocVwCtl.WebBrowser webWindow
- Height = 4695
- Left = 0
- TabIndex = 0
- Top = 645
- Width = 5400
- ExtentX = 9525
- ExtentY = 8281
- ViewMode = 0
- Offline = 0
- Silent = 0
- RegisterAsBrowser= 0
- RegisterAsDropTarget= 1
- AutoArrange = 0 'False
- NoClientEdge = 0 'False
- AlignLeft = 0 'False
- ViewID = "{0057D0E0-3573-11CF-AE69-08002B2E1262}"
- Location = ""
- End
- Begin VB.Label lblWindowsUpdate
- Alignment = 2 'Center
- BackColor = &H00000000&
- Caption = "WU"
- BeginProperty Font
- Name = "Tahoma"
- Size = 12
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H00FFFFFF&
- Height = 285
- Left = 14640
- TabIndex = 20
- ToolTipText = "Options"
- Top = 0
- Width = 495
- End
- Begin VB.Label lblOptions
- Alignment = 2 'Center
- BackColor = &H00000000&
- Caption = "O"
- BeginProperty Font
- Name = "Tahoma"
- Size = 12
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H00FFFFFF&
- Height = 285
- Left = 14640
- TabIndex = 19
- ToolTipText = "Options"
- Top = 360
- Width = 495
- End
- Begin VB.Label lblLink1
- Alignment = 2 'Center
- BackColor = &H00404040&
- BeginProperty Font
- Name = "Tahoma"
- Size = 11.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H00FFFFFF&
- Height = 285
- Index = 9
- Left = 12720
- TabIndex = 18
- ToolTipText = "Search"
- Top = 360
- Width = 1695
- End
- Begin VB.Label lblLink1
- Alignment = 2 'Center
- BackColor = &H00404040&
- BeginProperty Font
- Name = "Tahoma"
- Size = 11.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H00FFFFFF&
- Height = 285
- Index = 8
- Left = 10920
- TabIndex = 17
- ToolTipText = "Search"
- Top = 360
- Width = 1695
- End
- Begin VB.Label lblLink1
- Alignment = 2 'Center
- BackColor = &H00404040&
- BeginProperty Font
- Name = "Tahoma"
- Size = 11.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H00FFFFFF&
- Height = 285
- Index = 7
- Left = 9120
- TabIndex = 16
- ToolTipText = "Search"
- Top = 360
- Width = 1695
- End
- Begin VB.Label lblLink1
- Alignment = 2 'Center
- BackColor = &H00404040&
- BeginProperty Font
- Name = "Tahoma"
- Size = 11.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H00FFFFFF&
- Height = 285
- Index = 6
- Left = 7320
- TabIndex = 15
- ToolTipText = "Search"
- Top = 360
- Width = 1695
- End
- Begin VB.Label lblLink1
- Alignment = 2 'Center
- BackColor = &H00404040&
- BeginProperty Font
- Name = "Tahoma"
- Size = 11.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H00FFFFFF&
- Height = 285
- Index = 5
- Left = 5520
- TabIndex = 14
- ToolTipText = "Search"
- Top = 360
- Width = 1695
- End
- Begin VB.Label lblLink1
- Alignment = 2 'Center
- BackColor = &H00404040&
- BeginProperty Font
- Name = "Tahoma"
- Size = 11.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H00FFFFFF&
- Height = 285
- Index = 4
- Left = 12720
- TabIndex = 13
- ToolTipText = "Search"
- Top = 0
- Width = 1695
- End
- Begin VB.Label lblLink1
- Alignment = 2 'Center
- BackColor = &H00404040&
- BeginProperty Font
- Name = "Tahoma"
- Size = 11.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H00FFFFFF&
- Height = 285
- Index = 3
- Left = 10920
- TabIndex = 12
- ToolTipText = "Search"
- Top = 0
- Width = 1695
- End
- Begin VB.Label lblLink1
- Alignment = 2 'Center
- BackColor = &H00404040&
- BeginProperty Font
- Name = "Tahoma"
- Size = 11.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H00FFFFFF&
- Height = 285
- Index = 2
- Left = 9120
- TabIndex = 11
- ToolTipText = "Search"
- Top = 0
- Width = 1695
- End
- Begin VB.Label lblLink1
- Alignment = 2 'Center
- BackColor = &H00404040&
- BeginProperty Font
- Name = "Tahoma"
- Size = 11.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H00FFFFFF&
- Height = 285
- Index = 1
- Left = 7320
- TabIndex = 10
- ToolTipText = "Search"
- Top = 0
- Width = 1695
- End
- Begin VB.Label lblLink1
- Alignment = 2 'Center
- BackColor = &H00404040&
- BeginProperty Font
- Name = "Tahoma"
- Size = 11.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H00FFFFFF&
- Height = 285
- Index = 0
- Left = 5520
- TabIndex = 9
- ToolTipText = "Search"
- Top = 0
- Width = 1695
- End
- Begin VB.Label lblFavorites
- Alignment = 2 'Center
- BackColor = &H00000000&
- Caption = "F"
- BeginProperty Font
- Name = "Tahoma"
- Size = 12
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H00FFFFFF&
- Height = 285
- Left = 2880
- TabIndex = 8
- ToolTipText = "Enter"
- Top = 360
- Width = 495
- End
- Begin VB.Label lblSearch
- Alignment = 2 'Center
- BackColor = &H00000000&
- Caption = "S"
- BeginProperty Font
- Name = "Tahoma"
- Size = 12
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H00FFFFFF&
- Height = 285
- Left = 2400
- TabIndex = 7
- ToolTipText = "Search"
- Top = 360
- Width = 495
- End
- Begin VB.Label lblStop
- Alignment = 2 'Center
- BackColor = &H00000000&
- Caption = "X"
- BeginProperty Font
- Name = "Tahoma"
- Size = 12
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H00FFFFFF&
- Height = 285
- Left = 1440
- TabIndex = 6
- ToolTipText = "Stop"
- Top = 360
- Width = 495
- End
- Begin VB.Label lblRefresh
- Alignment = 2 'Center
- BackColor = &H00000000&
- Caption = "R"
- BeginProperty Font
- Name = "Tahoma"
- Size = 12
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H00FFFFFF&
- Height = 285
- Left = 960
- TabIndex = 5
- ToolTipText = "Refresh"
- Top = 360
- Width = 495
- End
- Begin VB.Label lblHome
- Alignment = 2 'Center
- BackColor = &H00000000&
- Caption = "H"
- BeginProperty Font
- Name = "Tahoma"
- Size = 12
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H00FFFFFF&
- Height = 285
- Left = 1920
- TabIndex = 4
- ToolTipText = "Home - Left click for Home1, Right click for Home2"
- Top = 360
- Width = 495
- End
- Begin VB.Label lblBack
- Alignment = 2 'Center
- BackColor = &H00000000&
- Caption = "<-"
- BeginProperty Font
- Name = "Tahoma"
- Size = 12
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H00FFFFFF&
- Height = 285
- Left = 0
- TabIndex = 3
- ToolTipText = "Back"
- Top = 360
- Width = 495
- End
- Begin VB.Label lblForward
- Alignment = 2 'Center
- BackColor = &H00000000&
- Caption = "->"
- BeginProperty Font
- Name = "Tahoma"
- Size = 12
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H00FFFFFF&
- Height = 285
- Left = 480
- TabIndex = 2
- ToolTipText = "Forward"
- Top = 360
- Width = 495
- End
- Begin ComctlLib.ImageList imlIcons
- Left = 2670
- Top = 2325
- _ExtentX = 1005
- _ExtentY = 1005
- BackColor = -2147483643
- ImageWidth = 24
- ImageHeight = 24
- MaskColor = 12632256
- _Version = 327682
- BeginProperty Images {0713E8C2-850A-101B-AFC0-4210102A8DA7}
- NumListImages = 6
- BeginProperty ListImage1 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "frmMain.frx":030A
- Key = ""
- EndProperty
- BeginProperty ListImage2 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "frmMain.frx":0A1C
- Key = ""
- EndProperty
- BeginProperty ListImage3 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "frmMain.frx":112E
- Key = ""
- EndProperty
- BeginProperty ListImage4 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "frmMain.frx":1840
- Key = ""
- EndProperty
- BeginProperty ListImage5 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "frmMain.frx":1F52
- Key = ""
- EndProperty
- BeginProperty ListImage6 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "frmMain.frx":2664
- Key = ""
- EndProperty
- EndProperty
- End
- Attribute VB_Name = "frmMain"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Private Sub fFixTitleAndPath()
- 'display our program name in the title with the page name
- 'if the user is at a site
- If webWindow.LocationName = "" Then
- frmMain.Caption = "FastWeb 2000"
- Else
- frmMain.Caption = webWindow.LocationName & " | FastWeb 2000"
- End If
- End Sub
- Private Sub fLoadOptions()
- 'load our options
- Open App.Path & "\options.web" For Random As #1 Len = Len(Options)
- Get #1, 1, Options
- Close #1
- End Sub
- Private Sub Form_Load()
- 'put our program name in the title
- frmMain.Caption = "FastWeb 2000"
- 'program is made to run in 1024x768 only, can be changed
- 'later of course!
- frmMain.Height = 10750
- frmMain.Width = 15400
- frmMain.Top = 0
- frmMain.Left = 0
- 'load our options, if none exist they will default
- fLoadOptions
- 'go to the starting url, if none is specified dont do
- 'anything...we put a '-' in the startURL if they select
- 'nothing in the options screen
- If Options.StartURL <> "-" Then
- txtAddress.Text = RTrim(Options.StartURL)
- webWindow.Navigate (txtAddress.Text)
- End If
- gLoadFavorites
- End Sub
- Private Sub Form_Resize()
- 'this accounts to a 2 level taskbar (thats what i have)
- webWindow.Height = frmMain.ScaleHeight - 540
- 'fill the screen with the site
- webWindow.Width = frmMain.ScaleWidth
- End Sub
- Private Sub lblBack_Click()
- On Error GoTo errHandler
- 'go back if they have came from another site or do nothing
- webWindow.GoBack
- Exit Sub
- errHandler:
- Call errHandler
- End Sub
- Private Sub lblFavorites_Click()
- 'load the favorites onto the screen
- gRefreshFavorites
- frmFav.Show 1 'show modal to avoid trouble
- End Sub
- Private Sub lblForward_Click()
- On Error GoTo errHandler
- 'go forward to a site they were just at or do nothing
- webWindow.GoForward
- Exit Sub
- errHandler:
- Call errHandler
- End Sub
- Private Sub lblHome_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
- On Error GoTo errHandler
- 'if its a left click, load home1 url
- If Button = 1 Then
- txtAddress.Text = RTrim(Options.Home1URL)
- 'otheriwse, load home2 url
- Else
- txtAddress.Text = RTrim(Options.Home2URL)
- End If
- 'go to the site
- webWindow.Navigate (txtAddress.Text)
- Exit Sub
- errHandler:
- Call errHandler
- End Sub
- Private Sub lblLink1_Click(Index As Integer)
- On Error GoTo errHandler
- 'if the caption is nothing, exit
- If lblLink1(Index).Caption = "" Then Exit Sub
- 'load this favorite
- Open App.Path & "\favorites.web" For Random As #1 Len = Len(Fav)
- Get #1, Index + 1, Fav
- Close #1
- 'if it doesn't have an url set, exit
- If RTrim(Fav.URL) = "" Then Exit Sub
- 'go to the URL
- webWindow.Navigate (RTrim(Fav.URL))
- Exit Sub
- errHandler:
- 'the url is damaged, corrupt or empty
- MsgBox "It appears that this URL is damaged, incomplete or corrupt. Select 'F' and verify your entry.", vbOKOnly, "FastWeb 2000"
- Exit Sub
- End Sub
- Private Sub lblOptions_Click()
- 'load the options to the screen
- gRefreshOptions
- frmOptions.Show 1
- End Sub
- Private Sub lblRefresh_Click()
- On Error GoTo errHandler
- 'reload the site the user is at
- webWindow.Refresh
- Exit Sub
- errHandler:
- Call errHandler
- End Sub
- Private Sub lblSearch_Click()
- On Error GoTo errHandler
- 'don't load the search site if they are already there
- If txtAddress.Text = RTrim(Options.SearchURL) Then Exit Sub
- 'display the site and go to it
- txtAddress.Text = RTrim(Options.SearchURL)
- webWindow.Navigate (txtAddress.Text)
- Exit Sub
- errHandler:
- Call errHandler
- End Sub
- Private Sub lblStop_Click()
- On Error GoTo errHandler
- 'stop loading this site
- webWindow.Stop
- Exit Sub
- errHandler:
- Call errHandler
- End Sub
- Private Sub lblWindowsUpdate_Click()
- 'launch the windows update site
- frmMain.webWindow.Navigate ("http://windowsupdate.microsoft.com/default2.htm?page=productupdates")
- End Sub
- Private Sub timTimer_Timer()
- 'if the browser is inactive, display a proper title
- If webWindow.Busy = False Then
- fFixTitleAndPath
- 'otherwise, display a loading title
- Else
- frmMain.Caption = "Loading... | FastWeb 2000"
- End If
- End Sub
- Private Sub txtAddress_KeyPress(KeyAscii As Integer)
- On Error GoTo errHandler
- 'if they have hit the enter button, load the site
- If KeyAscii = vbKeyReturn Then
- webWindow.Navigate (txtAddress.Text)
- End If
- Exit Sub
- errHandler:
- Call errHandler
- End Sub
- Private Sub webWindow_DownloadComplete()
- 'if they don't want to see paths in the address bar,
- 'don't display them
- If Options.ShowPaths <> 1 Then
- txtAddress.Text = ""
- 'otherwise, show them
- Else
- txtAddress.Text = webWindow.LocationURL
- End If
- End Sub
-